package com.lframework.xingyun.basedata.bo.member;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import com.lframework.starter.common.constants.StringPool;
import com.lframework.starter.web.core.bo.BaseBo;
import java.time.LocalDateTime;

import com.lframework.xingyun.basedata.entity.MemberCoupon;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;

/**
 * <p>
 * 用户卡券关系表 GetBo
 * </p>
 *
 */
@Data
public class GetMemberCouponBo extends BaseBo<MemberCoupon> {

    /**
     * ID
     */
    @ApiModelProperty("ID")
    private String id;

    /**
     * 会员id
     */
    @ApiModelProperty("会员id")
    private String memberId;

    /**
     * 卡券id
     */
    @ApiModelProperty("卡券id")
    private String couponId;

    /**
     * 过期实际
     */
    @ApiModelProperty("过期实际")
    @JsonFormat(pattern = StringPool.DATE_TIME_PATTERN)
    private LocalDateTime expiryDate;

    /**
     * 状态（0:封存; 1:有效; 2:用尽; 3:过期;）
     */
    @ApiModelProperty("状态（0:封存; 1:有效; 2:用尽; 3:过期;）")
    private Integer couponStatus;

    /**
     * 总值
     */
    @ApiModelProperty("总值")
    private BigDecimal totalValue;

    /**
     * 增值比率
     */
    @ApiModelProperty("增值比率")
    private BigDecimal added;

    /**
     * 可用值
     */
    @ApiModelProperty("可用值")
    private BigDecimal allowValue;

    public GetMemberCouponBo() {

    }

    public GetMemberCouponBo(MemberCoupon dto) {

        super(dto);
    }

    @Override
    public BaseBo<MemberCoupon> convert(MemberCoupon dto) {
        return super.convert(dto);
    }

    @Override
    protected void afterInit(MemberCoupon dto) {

    }
}

